<HTML>
 <HEAD>
 <TITLE>Tool 199: SMB/CIFS client: create a directory</TITLE>
 </HEAD>
 <BODY BGCOLOR="#FFFFFF">
  <CENTER>   <H3>Tool 199: SMB/CIFS client: create a directory</H3>
  </CENTER>

  <P><H3>Description:</H3>
   <PRE>
  This tool is a simple SMB/CIFS client creating a directory.
  
  Parameter --dst-ip is the address of remote host/server.
  Parameter --dst-port is the port number where to connect.
  Optional parameter --src-ip defines the local IP address to use.
  Optional parameter --src-port defines the local port number to use.
  Optional parameter --ip4opts permits to add IP4 options encoded as
  mixed.
  Optional parameter --ip6exts permits to add IP6 options encoded as
  mixed (first byte is the next header number).
  Optional parameters --device, --src-eth and --dst-eth permits to
  create a virtual client using fake addresses (in this case, tool have
  to be run with admin privilege in order to sniff and spoof at
  Ethernet level).
  
  Parameter --share indicates the share name.
  Parameter --user indicates the optional username.
  Parameter --password indicates the optional password.
  Parameter --authversion defines the authentication protocol to use
  (0=Lanman, 1=NTLMv1, 2=NTLMv2, unset=guess(try NTLMv2, then NTLMv1,
  and finally Lanman)).
  Parameter --netbiosname defines the NetBIOS name of server. It is
  generally the same as its DNS name. Most of the time, it is not
  needed.
  Parameter --verbose displays activity (set it if a problem occurs).
  Parameter --debug displays packets to screen.
  Example, to connect on //server/myshare/, use:
  --dst-ip myserver --share myshare --netbiosname myserver --user bob
    --password hello
   </PRE>

  <P><H3>Synonyms:</H3>
  &nbsp;&nbsp;smbclient<BR>

  <P><H3>Usage:</H3>
  &nbsp;&nbsp;netwox 199 -i ip -s smbshare [-u login] [-w password] [-N netbiosname] -f dir [-d device] [-E eth] [-e eth] [-I ip] [-P port] [-p port] [-o ip4opts] [-O ip6exts] [-v uint32] [-T uint32] [-V|+V] [-D|+D]<BR>

  <P><H3>Parameters:</H3>
<TABLE BORDER=1 CELLPADDING=4>
 <TR>
  <TD ALIGN=middle><I>parameter</I></TD>
  <TD ALIGN=middle><I>description</I></TD>
  <TD ALIGN=middle><I>example</I></TD>
 </TR>
 <TR><TD><TT>-i|--dst-ip ip</TD>
<TD>destination IP address</TD>
<TD>5.6.7.8</TD></TR>
<TR><TD><TT>-s|--share smbshare</TD>
<TD>share name</TD>
<TD>C$</TD></TR>
<TR><TD><TT>-u|--user login</TD>
<TD>username</TD>
<TD>&nbsp;</TD></TR>
<TR><TD><TT>-w|--password password</TD>
<TD>password</TD>
<TD>&nbsp;</TD></TR>
<TR><TD><TT>-N|--netbiosname netbiosname</TD>
<TD>server NetBIOS NAME</TD>
<TD>&nbsp;</TD></TR>
<TR><TD><TT>-f|--dirname dir</TD>
<TD>directory name</TD>
<TD>mydir</TD></TR>
<TR><TD><TT>-d|--device device</TD>
<TD>device name</TD>
<TD>Eth0</TD></TR>
<TR><TD><TT>-E|--src-eth eth</TD>
<TD>source ethernet address</TD>
<TD>0:2:3:4:5:6</TD></TR>
<TR><TD><TT>-e|--dst-eth eth</TD>
<TD>destination ethernet address</TD>
<TD>0:8:9:a:b:c</TD></TR>
<TR><TD><TT>-I|--src-ip ip</TD>
<TD>source IP address</TD>
<TD>192.168.100.200</TD></TR>
<TR><TD><TT>-P|--src-port port</TD>
<TD>source port number</TD>
<TD>0</TD></TR>
<TR><TD><TT>-p|--dst-port port</TD>
<TD>destination port number</TD>
<TD>139</TD></TR>
<TR><TD><TT>-o|--ip4opts ip4opts</TD>
<TD>IPv4 options</TD>
<TD>&nbsp;</TD></TR>
<TR><TD><TT>-O|--ip6exts ip6exts</TD>
<TD>IPv6 extensions</TD>
<TD>&nbsp;</TD></TR>
<TR><TD><TT>-v|--authversion uint32</TD>
<TD>0=Lanman, 1=NTLMv1, 2=NTLMv2, unset=best</TD>
<TD>2</TD></TR>
<TR><TD><TT>-T|--timeout uint32</TD>
<TD>timeout in milliseconds</TD>
<TD>60000</TD></TR>
<TR><TD><TT>-V|--verbose|+V|--no-verbose</TD>
<TD>display SMB trace</TD>
<TD>&nbsp;</TD></TR>
<TR><TD><TT>-D|--debug|+D|--no-debug</TD>
<TD>display SMB packets</TD>
<TD>&nbsp; </TD></TR>
</TABLE>

  <P><H3>Examples:</H3>
  &nbsp;&nbsp;netwox 199 -i "5.6.7.8" -s "C$" -f "mydir"<BR>
<BR>
  &nbsp;&nbsp;netwox 199 --dst-ip "5.6.7.8" --share "C$" --dirname "mydir"<BR>
<BR>
 </BODY>
 </HTML>
